#被攻击时
execute as @n[tag=mystic_pedestal.interaction,type=interaction,distance=..1] on attacker if entity @s[gamemode=creative] run return run data remove entity @n[tag=mystic_pedestal.interaction,type=interaction,distance=..1] attack
execute as @n[tag=mystic_pedestal.interaction,type=interaction,distance=..1] on attacker if entity @s[nbt=!{HurtTime:0s}] run return run data remove entity @n[tag=mystic_pedestal.interaction,type=interaction,distance=..1] attack

#Effect
execute as @n[tag=mystic_pedestal.interaction,type=interaction,distance=..1] on attacker run damage @s 1 magic
particle witch ~ ~1.3 ~ 0.1 0.1 0.1 1 25 normal
playsound enchant.thorns.hit block @a ~ ~ ~ 1.0 1.0

execute if predicate {condition:"random_chance",chance:0.1} as @n[tag=mystic_pedestal.interaction,type=interaction,distance=..1] on attacker at @s run summon lightning_bolt ~ ~-2 ~

data remove entity @n[tag=mystic_pedestal.interaction,type=interaction,distance=..1] attack